home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gMainPath, gPathDelimiter, gTargetModule
- set target to the movieName
- set numChars to the number of chars in target
- set targetCheck to char numChars - 3 to numChars of target
- case targetCheck of
- ".exe", ".dir", ".dxr", ".eap":
- delete char numChars - 3 to numChars of target
- end case
- cursor(4)
- if the machineType = 256 then
- set gPathDelimiter to "\"
- else
- set gPathDelimiter to ":"
- end if
- set cdDrive to CheckDrive("Hrwimp.id")
- if target contains "start" then
- set target to "main"
- set gTargetModule to cdDrive & gPathDelimiter & target
- else
- set gTargetModule to cdDrive & gPathDelimiter & target & gPathDelimiter & target
- end if
- go(1, cdDrive & gPathDelimiter & "start")
- end
-